package com.zhu.ecology;

/**
 * Created by ehsy_it on 2016-05-06.
 */
public class AllName {

    public static void main(String[] args){
        int start = 1;
        int end = 9999;


        for(int empNoNum = start; empNoNum < end; empNoNum ++){
            String empNo = String.valueOf(empNoNum); // eg:1
            int needZeroCount = 5 - empNo.length();
            String empNoStr = (int)Math.pow(10, needZeroCount) + empNo; // eg: 10000 + "1"=>"100001"
            empNoStr = empNoStr.substring(1); // eg:"00001"

            System.out.println(empNoStr + "---->" );
        }
    }
}
